module.exports = {
	// 配置路径别名
	configureWebpack: {
		devServer: {
			// 调试时允许内网穿透，让外网的人访问到本地调试的H5页面
			disableHostCheck: true
		}
	},
	//productionSourceMap: false,
	devServer: {
		proxy: {
			'/api': {
				// target: 'http://8.133.184.107/JZYG/dataprovider/jsondata.php',
				// target: 'http://114.55.103.89/NAJ/dataprovider/jsondata.php',
				target: 'http://www.negpower.com/dataprovider/jsondata.php',
				// target: 'http://www.njhzpower.com/dataprovider/jsondata.php',
				pathRewrite: {
					'^/api': ''
				}
			}
		},
	}
}
